﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class IBagPrxHelper extends RMIProxyObject implements IBagPrx
    {
        public static const NAME:String = "Message.Game.IBag";

        public function IBagPrxHelper()
        {
            name = "IBag";
            return;
        }// end function

        public function destroy_async(param1:AMI_IBag_destroy, param2:Array) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("destroy");
            var _loc_5:* = new SerializeStream();
            SeqBagItemHelper.write(_loc_5, param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function get_async(param1:AMI_IBag_get, param2:EPlayerItemPosType) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("get");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function getMoneyCardStat_async(param1:AMI_IBag_getMoneyCardStat) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("getMoneyCardStat");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function move_async(param1:AMI_IBag_move, param2:EMoveType, param3:Array) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("move");
            var _loc_6:* = new SerializeStream();
            param2.__write(_loc_6);
            SeqBagItemHelper.write(_loc_6, param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function open_async(param1:AMI_IBag_open, param2:EPlayerItemPosType, param3:int, param4:int) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("open");
            var _loc_7:* = new SerializeStream();
            param2.__write(_loc_7);
            _loc_7.writeInt(param3);
            _loc_7.writeInt(param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

        public function openTime_async(param1:AMI_IBag_openTime, param2:EPlayerItemPosType) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("openTime");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function repair_async(param1:AMI_IBag_repair) : void
        {
            var _loc_2:* = makeContext(session);
            var _loc_3:* = makeCall("repair");
            var _loc_4:* = new SerializeStream();
            Outgoing.invokeAsync(_loc_2, _loc_3, _loc_4, param1);
            return;
        }// end function

        public function sell_async(param1:AMI_IBag_sell, param2:Array) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("sell");
            var _loc_5:* = new SerializeStream();
            SeqBagItemHelper.write(_loc_5, param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function split_async(param1:AMI_IBag_split, param2:String, param3:int) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("split");
            var _loc_6:* = new SerializeStream();
            _loc_6.writeString(param2);
            _loc_6.writeInt(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function tidy_async(param1:AMI_IBag_tidy, param2:EPlayerItemPosType) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("tidy");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function use_async(param1:AMI_IBag_use, param2:String, param3:int, param4:Array) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("use");
            var _loc_7:* = new SerializeStream();
            _loc_7.writeString(param2);
            _loc_7.writeInt(param3);
            SeqStringHelper.write(_loc_7, param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

    }
}
